package com.power.algorithm;

/**
 * @description:
 * @author: jiangnan
 * @time: 2021/6/21 3:47 下午
 */
public class SolutionOffer18 {

    public class ListNode {
        int val;
        ListNode next;

        ListNode(int x) {
            val = x;
        }
    }


    public void deleteNode(ListNode node) {
            node.val = node.next.val;
            node.next = node.next.next;
    }
}
